package mapper;

import server.HttpServlet;

public class Wrapper{
    //配置在demo项目中的web.xml文件中的url请求路径
    private String urlPattern;
    //servlet实例对象
    private HttpServlet httpServlet;

    public Wrapper(String urlPattern, HttpServlet httpServlet) {
        this.urlPattern = urlPattern;
        this.httpServlet = httpServlet;
    }

    public HttpServlet getHttpServlet() {
        return httpServlet;
    }

    public void setHttpServlet(HttpServlet httpServlet) {
        this.httpServlet = httpServlet;
    }

    public String getUrlPattern() {
        return urlPattern;
    }

    public void setUrlPattern(String urlPattern) {
        this.urlPattern = urlPattern;
    }
}
